package com.foreveross.crawl.common.core;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;

import org.openkoala.koala.auth.core.domain.KoalaSecurityEntity;

/** 
 * @ClassName: DateIntervalEntity 
 * @Description: TODO
 * @author luofangyi
 * @date 2014-10-16 下午2:46:05 
 *  
 */ 
@MappedSuperclass
public abstract class DateIntervalEntity extends KoalaSecurityEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 894635083305128162L;
	
	private Date createDate;
	private Date disableDate;//失效时间

	@Column(name = "CREATE_DATE")
	@Temporal(TemporalType.TIMESTAMP)
	@NotNull(message = "createDate.is.null")
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Column(name = "DISABLE_DATE")
	@Temporal(TemporalType.TIMESTAMP)
	public Date getDisableDate() {
		return disableDate;
	}

	public void setDisableDate(Date disableDate) {
		this.disableDate = disableDate;
	}
	
}
